/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.openbookformat.obffinder;

import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.lookup.Lookups;

/**
 *
 * @author MUFEED
 */
class FindResultNode extends AbstractNode {
    FindResult result;

    public FindResultNode(FindResult result) {
        super(Children.LEAF, Lookups.fixed(new Object[] {
           result}) );
        this.result = result;
    }

    public FindResult getResult() {
        return result;
    }

    @Override
    public String getDisplayName() {
        return "idx=" + result.getIndex() + ";" + result.getFind();
    }

}
